package com.chenxin.wms.controller;

import com.chenxin.common.core.controller.BaseController;
import com.chenxin.common.core.page.TableDataInfo;
import com.chenxin.wms.domain.vo.AlgorithmVO;
import com.chenxin.wms.service.IAlgorithmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wms/algorithm")
public class AlgorithmController extends BaseController {
    @Autowired
    private IAlgorithmService algorithmService;

    /**
     * 查询容器列表
     */
    @GetMapping("/list")
    public TableDataInfo list(AlgorithmVO algorithmVo) {
        startPage();
        List<AlgorithmVO> list = algorithmService.selectAlgorithmList(algorithmVo);
        return getDataTable(list);
    }
}
